<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">

<head>
  <title>Tienda Virtual</title>
  <%= stylesheet_link_tag 'scaffold' %>
</head>

<body>

<h1>Tienda Virtual</h1>

<% if flash[:notice] %>
<p style="color: green"><%= flash[:notice] %></p>
<% end -%>

<%= render :partial => "shared/menu_principal" %>

<% if controller.controller_name != "carrito" %>
<div id="resumen" >
  <%= render_component(:controller => 'carrito', :action => 'resumen') %>
</div>
<% end %>

<%= yield  %>

</body>
</html>
